package te2;

import java.text.ParseException;
import java.text.SimpleDateFormat;

public class testfx {
	public static void main(String[] args) {
		
		/*fanxing<String, String> f1=new fanxing<String, String>("name", "xiaoming");
		fanxing<String, Integer> f2=new fanxing<String, Integer>("age", 23);
		fanxing<Double, Double> f3=new fanxing<Double, Double>(1.1, 2.2);
		System.out.println(f1.getKey()+"|"+f1.getValue());
		System.out.println(f2.getKey()+"|"+f2.getValue());
		System.out.println(f3.getKey()+"|"+f3.getValue());*/
		
		String times="2017-07-27 10:59:38";
	
		SimpleDateFormat sFormat=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		
		try {
			System.out.println(sFormat.parse(times).getTime());
			System.out.println(System.currentTimeMillis());
		} catch (ParseException e) {
			
			e.printStackTrace();
		}
		
		
		
	}

}
